package linc.spring.demo.service;

import linc.spring.demo.bean.Role;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author yqlin
 * @date 2021/9/7 00:31
 * @description
 */
@Component
public class UserService {
    @Value("linc")
    private Role role;

    public void test() {
        System.out.println("UserService执行...");
        System.out.println(role);
    }
}
